package com.store.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Goods entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "goods", catalog = "depot")
public class Goods implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer GId;
	private String GName;
	private String GUnit;
	private String GNumber;
	private Integer GDepotid;

	// Constructors

	/** default constructor */
	public Goods() {
	}

	/** full constructor */
	public Goods(String GName, String GUnit, String GNumber, Integer GDepotid) {
		this.GName = GName;
		this.GUnit = GUnit;
		this.GNumber = GNumber;
		this.GDepotid = GDepotid;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "g_id", unique = true, nullable = false)
	public Integer getGId() {
		return this.GId;
	}

	public void setGId(Integer GId) {
		this.GId = GId;
	}

	@Column(name = "g_name", length = 20)
	public String getGName() {
		return this.GName;
	}

	public void setGName(String GName) {
		this.GName = GName;
	}

	@Column(name = "g_unit", length = 20)
	public String getGUnit() {
		return this.GUnit;
	}

	public void setGUnit(String GUnit) {
		this.GUnit = GUnit;
	}

	@Column(name = "g_number", length = 20)
	public String getGNumber() {
		return this.GNumber;
	}

	public void setGNumber(String GNumber) {
		this.GNumber = GNumber;
	}

	@Column(name = "g_depotid")
	public Integer getGDepotid() {
		return this.GDepotid;
	}

	public void setGDepotid(Integer GDepotid) {
		this.GDepotid = GDepotid;
	}

}